#include "resource.h"

Resource::Resource(QObject *parent) :
    QObject(parent), mId(-1), mName(""), mUrl("")
{
}

void Resource::setId(int id)
{
    mId = id;
}

int Resource::getId()
{
    return mId;
}

void Resource::setName(QString name)
{
    mName = name;
}

QString Resource::getName()
{
    return mName;
}

void Resource::setUrl(QUrl url)
{
    mUrl = QUrl(url);
}

QUrl Resource::getUrl()
{
    return mUrl;
}
